﻿<%@ include file="/WEB-INF/views/framework/global.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<% 
	String updateMessage = (String)request.getParameter("updateMessage");
	if(updateMessage==null || updateMessage.equals("null")){
		updateMessage = "";
	}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>毕业设计课题</title>
</head>
<body class="kk">
	<ul class="nav nav-tabs g_navbar">
		<li><a href="${reqRoot}">我的课题</a></li>
		<li class="active"><a href="#">课题编辑</a></li>
	</ul>
	<div class="framework_container">
		<!-- alert -->
		<div class="alert alert-success">
			<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
			<strong>做得不错！</strong><%=updateMessage %>
		</div><!-- /alert -->
		<div class="row">
			<div class="col-md-1"></div>
			<div class="col-md-10">
				<form:form modelAttribute="uploadItem" class="form-horizontal"
					action="${reqRoot}/update" name="frm" method="post"
					enctype="multipart/form-data">
					<div class="form-group">
						<label class="col-md-2 control-label" for="name">课题名称</label>
						<div class="col-md-10">
							<input type="text" class="form-control" id="exampleInputEmail1"
								name="name" placeholder="报告名称" value="${topic.name}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label" for="content">课题内容</label>
						<div class="col-md-10">
							<textarea id="editor_id" name="content"
								style="width: 100%; height: 250px;">${topic.content}</textarea>
						</div>
					</div>
					<div class="form-group tc">
						<button type="submit" class="btn btn-success mr20" id="submit">保存</button>
						<button type="button" class="btn btn-default mr20" id="back">返回</button>
					</div>
				</form:form>
			</div>
			<div class="col-md-1"></div>
		</div>
	</div>
	<!-- /framework_container -->
	<script charset="utf-8"
		src="${path}/static/lib/kindeditor-4.1.10/kindeditor.js"></script>
	<script charset="utf-8"
		src="${path}/static/lib/kindeditor-4.1.10/lang/zh_CN.js"></script>
	<script src="${cmpRoot}/student_topic_update.js"></script>
</body>
</html>
